import request from '@/common/request.js'

const api = {}

api.userGetCode = params => request.globalRequest(`/api/app/user/getCode`, 'POST', params, 1,'验证码获取中')
api.setPayPassword = params => request.globalRequest(`/api/app/user/updatePayPassword`, 'POST', params, 1,'修改中')
api.sendMoney = params => request.globalRequest(`/api/app/user/sendMoney`, 'POST', params, 1,'处理中')
api.moneyShopList = params => request.globalRequest(`/api/app/user/moneyShopList`, 'POST', params, 1,'')
api.getShopDetailInfo = params => request.globalRequest(`/api/app/shop/getInfo`, 'POST', params, 1,'')
api.openDaDoor = params => request.globalRequest(`/api/app/shop/openDoor`, 'POST', params, 1,'请求中')



api.btLockInfo = params => request.globalRequest(`/api/app/lock/openLock`, 'POST', params, 1,'')

api.getCity = params => request.globalRequest(`/api/app/index/getCity`, 'POST', params, 1,'')
api.getShop = params => request.globalRequest(`/api/app/index/getShopListV5`, 'POST', params, 1,'数据获取中')
api.getShopNewList = params => request.globalRequest(`/api/shop/shop/getShopListV2`, 'POST', params, 1,'')//招商页面展示店铺列表

api.autoLogin = params => request.globalRequest(`/api/app/user/autoLogin`, 'POST', params, 1,'')
api.orderList = params => request.globalRequest(`/api/app/order/orderList`, 'POST', params, -1,'')
api.orderDetail = params => request.globalRequest(`/api/app/order/detail`, 'POST', params, 1,'')
api.shopList = params => request.globalRequest(`/api/app/shop/shopList2`, 'POST', params, -1,'')
api.getChargeInfo = params => request.globalRequest(`/api/app/shop/getChargeInfo`, 'POST', params, -1,'')
api.charge = params => request.globalRequest(`/api/app/shop/doCharge`, 'POST', params, 1,'充值中')
api.updatePhone = params => request.globalRequest(`/api/app/user/updatePhone`, 'POST', params, 1,'修改中')
api.updateUser = params => request.globalRequest(`/api/app/user/updateUserInfo`, 'POST', params, 1,'修改中')
api.getShopDetail = params => request.globalRequest(`/api/app/shop/getDetail`, 'POST', params, -1,'')
api.getRoomList = params => request.globalRequest(`/api/app/shop/getRoomList`, 'POST', params, -1,'')
api.getKtvRoom = params => request.globalRequest(`/api/app/shop/getKtvRoom`, 'POST', params, -1,'')

api.roomTimeOne = params => request.globalRequest(`/api/app/shop/roomTimeOne`, 'POST', params, -1,'')
api.roomTimeTwo = params => request.globalRequest(`/api/app/shop/roomTimeTwo`, 'POST', params, 1,'')
api.roomTimeThree = params => request.globalRequest(`/api/app/shop/roomTimeThree`, 'POST', params, 1,'')
api.roomTime = params => request.globalRequest(`/api/app/shop/roomTime`, 'POST', params, -1,'')

api.orderInit = params => request.globalRequest(`/api/app/order/orderInit6`, 'POST', params, 1,'')

api.tableOrderInit = params => request.globalRequest(`/api/app/shoptable/tableOrderInit`, 'POST', params, 1,'')


api.addBookOrder = params => request.globalRequest(`/api/app/qx/order/addBookOrderFzV12`, 'POST', params, 1,'预定中')
//api.addBookOrder = params => request.globalRequest(`/api/app/qx/order/addBookOrderFz`, 'POST', params, 1,'预定中')

api.restore = params => request.globalRequest(`/api/app/order/restore`, 'POST', params, 1,'取消中')
api.search = params => request.globalRequest(`/api/app/index/search`, 'POST', params, 1,'搜索中')
api.balanceList = params => request.globalRequest(`/api/app/user/balanceList`, 'POST', params, 1,'')
api.balanceShopList = params => request.globalRequest(`/api/app/shop/balanceShopList`, 'POST', params, 1,'')
api.auth = params => request.globalRequest(`/api/app/user/auth`, 'POST', params, 1,'登录中')
api.info = params => request.globalRequest(`/api/app/user/info`, 'POST', params, -1,'')

api.addShopJoin = params => request.globalRequest(`/api/app/system/addShopJoinV3`, 'POST', params, 1,'提交中')
api.articelList = params => request.globalRequest(`/api/app/system/articelList`, 'POST', params, 1,'')
api.articleInfo = params => request.globalRequest(`/api/app/system/articleInfo`, 'POST', params, 1,'')

api.tuanList = params => request.globalRequest(`/api/app/tuan/getList`, 'POST', params, 1,'')

api.lookRoom = params => request.globalRequest(`/api/app/tuan/lookRoom`, 'POST', params, 1,'')

api.addTuanOrder = params => request.globalRequest(`/api/app/tuan/addTuanOrder`, 'POST', params, 1,'购买中')
api.userTuanList = params => request.globalRequest(`/api/app/tuan/userTuanList`, 'POST', params, 1,'')

api.open = params => request.globalRequest(`/api/app/cmd/open2`, 'POST', params, 1,'请求中')

api.xu = params => request.globalRequest(`/api/app/cmd/xu`, 'POST', params, 1,'请求中')
api.xufeiPay = params => request.globalRequest(`/api/app/cmd/xufeiPay`, 'POST', params, 1,'续费中')
api.hourList = params => request.globalRequest(`/api/app/scan/hourList`, 'POST', params, 1,'')
api.scanAddOrder = params => request.globalRequest(`/api/app/scan/addOrder`, 'POST', params, 1,'订购中')

api.getWifiInfo = params => request.globalRequest(`/api/app/shop/getWifiInfo`, 'POST', params, 1,'')
api.checkOrderBookTime = params => request.globalRequest(`/api/app/order/checkOrderBookTimeV2`, 'POST', params, 1,'')
api.checkTableBookTime = params => request.globalRequest(`/api/app/shoptable/checkOrderBookTime`, 'POST', params, 1,'')

api.tableXu = params => request.globalRequest(`/api/app/shoptable/xuV2`, 'POST', params, 1,'')
api.tableXuPay = params => request.globalRequest(`/api/app/shoptable/xufeiPayV2`, 'POST', params, 1,'')
api.tableCodeXu = params => request.globalRequest(`/api/app/shoptable/codeXuV2`, 'POST', params, 1,'')

api.mtCheckCode = params => request.globalRequest(`/api/app/mt/checkCode`, 'POST', params, 1,'')
api.mtUserCodeDetail = params => request.globalRequest(`/api/app/mt/userCodeDetail2`, 'POST', params, 1,'')


api.douCheckCode = params => request.globalRequest(`/api/app/douks/checkCode`, 'POST', params, 1,'')
api.douUserCodeDetail = params => request.globalRequest(`/api/app/douks/userCodeDetail`, 'POST', params, 1,'')

api.orderRefund = params => request.globalRequest(`/api/app/order/refundV5`, 'POST', params, 1,'退款中')



api.checkRefund = params => request.globalRequest(`/api/app/order/checkRefund`, 'POST', params, 1,'退款中')


api.getNotice = params => request.globalRequest(`/api/app/shop/getNotice1`, 'POST', params, -1,'')

api.beforeOpen = params => request.globalRequest(`/api/app/cmd/beforeOpen`, 'POST', params, 1,'请求中')
api.doShopFav = params => request.globalRequest(`/api/app/shop/doShopFav`, 'POST', params, 1,'')
api.favShopList = params => request.globalRequest(`/api/app/shop/favShopList`, 'POST', params, 1,'')

api.userCouponList = params => request.globalRequest(`/api/app/coupon/userCouponList`, 'POST', params, 1,'')

api.shopCouponList  = params => request.globalRequest(`/api/app/coupon/getShopCouponList`, 'POST', params, 1,'')


//台球
api.tableDetail = params => request.globalRequest(`/api/app/shoptable/getDetail`, 'POST', params, -1,'')
api.tableAddOrder = params => request.globalRequest(`/api/app/shoptable/addOrderV7`, 'POST', params, 1,'开台中')
api.tableOrderList = params => request.globalRequest(`/api/app/shoptable/getOrderList`, 'POST', params, 1,'')
api.tableOverOrder = params => request.globalRequest(`/api/app/shoptable/overOrderV6`, 'POST', params, 1,'处理中')
api.tableOrderDetail = params => request.globalRequest(`/api/app/shoptable/orderDetail`, 'POST', params, 1,'')
api.tableChargeList = params => request.globalRequest(`/api/app/shoptable/getChargeList`, 'POST', params, -1,'')
api.tableDoCharge = params => request.globalRequest(`/api/app/shoptable/doCharge`, 'POST', params, 1,'充值中')
api.openTableBalance = params => request.globalRequest(`/api/app/shoptable/openTableBalanceV3`, 'POST', params, 1,'开台中')
api.tableOpenDoor = params => request.globalRequest(`/api/app/shoptable/tableOpenDoor`, 'POST', params, 1,'请求中')
api.addOrderHour = params => request.globalRequest(`/api/app/shoptable/addOrderHourV4`, 'POST', params, 1,'开台中')
api.getTableSetList = params => request.globalRequest(`/api/app/shoptable/getTableSetList`, 'POST', params, 1,'开台中')
api.initTableSet = params => request.globalRequest(`/api/app/shoptable/initTableSet`, 'POST', params, 1,'')
api.addTableBookOrder = params => request.globalRequest(`/api/app/shoptable/addBookOrder`, 'POST', params, 1,'')
	
//台球
api.tableList = params => request.globalRequest(`/api/app/shoptable/getListV3`, 'POST', params, 1,'')
api.tuanDetail = params => request.globalRequest(`/api/app/tuan/detail`, 'POST', params, 1,'')
api.addTuanOrderSxf = params => request.globalRequest(`/api/app/tuan/addTuanOrderFz`, 'POST', params, 1,'购买中')

api.takeCoupon = params => request.globalRequest(`/api/app/coupon/takeCoupon`, 'POST', params, 1,'领取中')
api.haveMobile = params => request.globalRequest(`/api/app/user/isHaveMobile`, 'POST', params, -1,'')

api.tableOpenAgain = params => request.globalRequest(`/api/app/shoptable/tableOpenAgain`, 'POST', params, 1,'处理中')

api.tqCheck = params => request.globalRequest(`/api/app/cmd/checkTq`, 'POST', params, 1,'检查中')


api.tuanRefund = params => request.globalRequest(`/api/app/tuan/refund`, 'POST', params, 1,'退款中')

api.getCityList = params => request.globalRequest(`/api/app/index/getCityList2`, 'POST', params, 1,'')

api.codeChargeInfo = params => request.globalRequest(`/api/app/shop/codeChargeInfo`, 'POST', params, 1,'')

api.doCodeCharge = params => request.globalRequest(`/api/app/shop/doCodeCharge`, 'POST', params, 1,'兑换中')

api.checkTableOrder = params => request.globalRequest(`/api/app/shoptable/checkTableOrder`, 'POST', params, 1,'请求中')

api.codeXu = params => request.globalRequest(`/api/app/order/codeXu`, 'POST', params, 1,'处理中')

api.assistAntList = params => request.globalRequest(`/api/app/assistant/getListV2`, 'POST', params, 1,'')

api.assistDetail = params => request.globalRequest(`/api/app/assistant/detail`, 'POST', params, 1,'')

api.getTimeList = params => request.globalRequest(`/api/app/assistant/getTimeList`, 'POST', params, 1,'')

api.addAssistOrder = params => request.globalRequest(`/api/app/assistant/addOrder`, 'POST', params, 1,'提交订单中')
api.assistOrderDetail = params => request.globalRequest(`/api/app/assistant/orderDetail`, 'POST', params, 1,'')

api.assistOrderList = params => request.globalRequest(`/api/app/assistant/assistOrderList`, 'POST', params, 1,'')

api.assistCancelOrder = params => request.globalRequest(`/api/app/assistant/cancelOrder`, 'POST', params, 1,'取消中')

api.initList = params => request.globalRequest(`/api/app/assistant/initList`, 'POST', params, 1,'')

api.assistAntAdd = params => request.globalRequest(`/api/app/assistant/add`, 'POST', params, 1,'提交中')
api.comment = params => request.globalRequest(`/api/app/order/comment`, 'POST', params, 1,'提交中')
api.commentList = params => request.globalRequest(`/api/app/order/commentList`, 'POST', params, 1,'提交中')
api.getXuList = params => request.globalRequest(`/api/app/cmd/getXuList`, 'POST', params, 1,'')
api.xuCommentDetail = params => request.globalRequest(`/api/app/order/xuCommentDetail`, 'POST', params, 1,'')
api.doCommentXu = params => request.globalRequest(`/api/app/order/doCommentXu`, 'POST', params, 1,'处理中')
api.doTableCommentXu = params => request.globalRequest(`/api/app/order/doTableCommentXu`, 'POST', params, 1,'处理中')
api.xuTableCommentDetail = params => request.globalRequest(`/api/app/order/xuTableCommentDetail`, 'POST', params, 1,'')


api.douKsCheckCode = params => request.globalRequest(`/api/app/douks/checkCode`, 'POST', params, 1,'')
api.douKsUserCodeDetail = params => request.globalRequest(`/api/app/douks/userCodeDetail`, 'POST', params, 1,'')


api.shopAllChargeList = params => request.globalRequest(`/api/app/charge/getList`, 'POST', params, 1,'')

api.allCharge = params => request.globalRequest(`/api/app/charge/addOrder`, 'POST', params, 1,'充值中')

api.allBalanceList = params => request.globalRequest(`/api/app/charge/getBalanceList`, 'POST', params, 1,'')

api.yueAdd = params => request.globalRequest(`/api/app/yue/add`, 'POST', params, 1,'提交中')

api.yueList = params => request.globalRequest(`/api/app/yue/getList`, 'POST', params, 1,'')

api.checkOrderDoing = params => request.globalRequest(`/api/app/qx/order/checkOrderDoing`, 'POST', params, 1,'退款中')

api.joinYue = params => request.globalRequest(`/api/app/yue/join`, 'POST', params, 1,'处理中')

api.joinList = params => request.globalRequest(`/api/app/yue/joinList`, 'POST', params, 1,'')

api.cancelJoin = params => request.globalRequest(`/api/app/yue/cancel`, 'POST', params, 1,'取消中')


export default api